//
//  WeekCollectionViewCell.m
//  FitTime
//
//  Created by Zone on 16/3/31.
//  Copyright © 2016年 赵建平. All rights reserved.
//

#import "WeekCollectionViewCell.h"

@implementation WeekCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.weekImage = [UIImageView new];
        self.weekImage.contentMode = UIViewContentModeScaleAspectFill;
//        self.weekImage.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_weekImage];
        
    }
    return self;
}
- (void)setRow:(NSInteger)row {
    
    _row = row;
    self.weekImage.image = [UIImage imageNamed:[NSString stringWithFormat:@"iconfont-星期%ld", row + 1]];
    
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.weekImage.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
